package com.edu.test;

import com.edu.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest03 {



    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("app2.xml");
        UserService userService = context.getBean(UserService.class);
        System.out.println(userService.getClass());
        userService.transferMoney(1,2,500);
    }
}
